﻿namespace Wms.Core.Entities
{
	public class InventoryLog
	{
		public int Id { get; set; }
		public int ItemId { get; set; }
		public Item Item { get; set; } = null!;

		public int LocationId { get; set; }
		public Location Location { get; set; } = null!;

		public int QuantityChanged { get; set; } // +入库, -出库
		public string? BatchNo { get; set; }
		public string? SerialNo { get; set; }
		public DateTime ChangeTime { get; set; } = DateTime.Now;
		public string? OperationType { get; set; } // 入库/出库/调拨/盘点
		public string? ReferenceNo { get; set; } // 关联单号
	}

}
